package cn.wolfcode.shop.cloud.util;

import cn.wolfcode.shop.cloud.key.KeyPrefix;

public class MemberKeyPrefix implements KeyPrefix {
    private int expireSeconds;
    private String keyPrefix;

    @Override
    public String getPrefix() {
        return this.keyPrefix;
    }

    @Override
    public int getExpireSeconds() {
        return this.expireSeconds;
    }

    public MemberKeyPrefix(int expireSeconds, String keyPrefix) {
        this.expireSeconds = expireSeconds;
        this.keyPrefix = keyPrefix;
    }

    public MemberKeyPrefix() {
    }

    public static final MemberKeyPrefix USER_TOKEN=new MemberKeyPrefix(1800,"userToken:");
}
